package com.ruoyi.medical.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 短信发送记录对象 meioms_sms_record
 * 
 * @author ruoyi
 * @date 2025-12-03
 */
@TableName("meioms_sms_record")
public class MeiomsSmsRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    @TableId
    private Long recordId;

    /** 模板ID */
    @Excel(name = "模板ID")
    private Long templateId;

    /** 模板编码 */
    @Excel(name = "模板编码")
    private String templateCode;

    /** 接收人电话 */
    @Excel(name = "接收人电话")
    private String receiverPhone;

    /** 短信内容 */
    @Excel(name = "短信内容")
    private String smsContent;

    /** 发送状态（0待发送 1已发送 2发送失败） */
    @Excel(name = "发送状态", readConverterExp = "0=待发送,1=已发送,2=发送失败")
    private String sendStatus;

    /** 发送时间 */
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /** 发送结果 */
    @Excel(name = "发送结果")
    private String sendResult;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String businessType;

    /** 业务ID */
    @Excel(name = "业务ID")
    private Long businessId;

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId()
    {
        return recordId;
    }
    public void setTemplateId(Long templateId)
    {
        this.templateId = templateId;
    }

    public Long getTemplateId()
    {
        return templateId;
    }
    public void setTemplateCode(String templateCode)
    {
        this.templateCode = templateCode;
    }

    public String getTemplateCode()
    {
        return templateCode;
    }
    public void setReceiverPhone(String receiverPhone)
    {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiverPhone()
    {
        return receiverPhone;
    }
    public void setSmsContent(String smsContent)
    {
        this.smsContent = smsContent;
    }

    public String getSmsContent()
    {
        return smsContent;
    }
    public void setSendStatus(String sendStatus)
    {
        this.sendStatus = sendStatus;
    }

    public String getSendStatus()
    {
        return sendStatus;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }
    public void setSendResult(String sendResult)
    {
        this.sendResult = sendResult;
    }

    public String getSendResult()
    {
        return sendResult;
    }
    public void setBusinessType(String businessType)
    {
        this.businessType = businessType;
    }

    public String getBusinessType()
    {
        return businessType;
    }
    public void setBusinessId(Long businessId)
    {
        this.businessId = businessId;
    }

    public Long getBusinessId()
    {
        return businessId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("templateId", getTemplateId())
            .append("templateCode", getTemplateCode())
            .append("receiverPhone", getReceiverPhone())
            .append("smsContent", getSmsContent())
            .append("sendStatus", getSendStatus())
            .append("sendTime", getSendTime())
            .append("sendResult", getSendResult())
            .append("businessType", getBusinessType())
            .append("businessId", getBusinessId())
            .toString();
    }
}
